package cn.edu.tju.elm.repository;

import cn.edu.tju.elm.model.OrderDetailet;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderDetailetRepository extends JpaRepository<OrderDetailet, Long> {
    // 根据订单ID查询订单详情
    List<OrderDetailet> findByOrderId(Long orderId);
}
